SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 40439: The SASDATEFMT= option does not convert the data type if the Oracle data type is TIMESTAMP

DetailsAboutRate It

The SASDATEFMT= option converts database management system (DBMS) data types to SAS DATE, TIME, or DATETIME data types. The DBSASTYPE= option also converts DBMS data types, not only to DATE, TIME, or DATETIME types, but also to CHAR and NUMERIC types.

Because the DBSASTYPE= option does the same as and more than the SASDATEFMT= option, it is expected that the SASDATEFMT= option will be phased out in a future release. As a result, support for the Oracle TIMESTAMP data type has not been included for the SASDATEFMT= option. If you attempt to use the SASDATEFMT= option with the TIMESTAMP data type, the option is ignored and no change occurs in the value, as shown in the following example:

libname ora oracle user=oracle-user password=oracle-password path=oracle-path;
proc sql noprint;
   create table work.sastabble
   as select * 
   from ora.oratable (sasdatefmt=(c1='date9.'));
quit;

When this code is submitted, the column C1 is not converted to the DATE9. format, and no warning is generated.

To avoid this issue, use the DBSASTYPE= option instead of the SASDATEFMT= option as shown in this example.

libname ors oracle user=oracle-user password=oracle-password path=oracle-path;
proc sql noprint;
   create table work.sastabble
   as select * 
   from ors.oratable (dbsastype=(c1='date9.'));
quit;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to OracleTru64 UNIX9.1 TS1M39.3 TS1M0
OpenVMS Alpha9.1 TS1M39.3 TS1M0
Linux9.1 TS1M39.3 TS1M0
HP-UX IPF9.1 TS1M39.3 TS1M0
64-bit Enabled Solaris9.1 TS1M39.3 TS1M0
64-bit Enabled HP-UX9.1 TS1M39.3 TS1M0
64-bit Enabled AIX9.1 TS1M39.3 TS1M0
Windows Vista for x649.1 TS1M39.3 TS1M0
Windows Vista9.1 TS1M39.3 TS1M0
Microsoft Windows XP Professional9.1 TS1M39.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M39.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M39.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M39.3 TS1M0
Microsoft Windows XP 64-bit Edition9.1 TS1M39.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M39.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M39.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M39.3 TS1M0
z/OS9.1 TS1M39.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.